<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
 插件菜单
*/
defined('BY_JYA') or exit('error');
list($basicname)=$arguments;
// 如果是乐高场景体，请使用三级菜单，否则用二级菜单，不按要求设置，菜单可能无法访问！；
$plugins=$this->plugins();
foreach($plugins as $ki=>&$item){
	$item['child']=$item['list'];
	unset($item['list']);
	foreach($item['child'] as $k=>&$p){
		if(!$p['is_install']){
			unset($item['child'][$k]);
		}else{
			if($p['actionurl']){
				$p['url']=$p['actionurl'];
			}else{
				$p['url']=$p['name'].'/basic.module_home/';
			}
		}
	}
}
$menus=array(
		array('title'=>'运营中心','fa'=>'icon-licai','url'=>'jy_xiangqin/index/','child'=>array(
			array('title'=>'平台概况','child'=>array(
				array('url'=>'jy_xiangqin/index/','title'=>'平台概况'),
				array('url'=>'jy_xiangqin/links/','title'=>'链接库'),
			)),
			array('title'=>'投诉建议','child'=>array(
				array('url'=>'jy_xiangqin/feedback/','title'=>'投诉建议'),
			)),
			array('title'=>'入口管理','child'=>array(
				array('url'=>'jy_xiangqin/basic.module_home/cover/ac=index&type=3','title'=>'首页入口'),
				array('url'=>'jy_xiangqin/basic.module_home/cover/ac=fuwu.index&type=3','title'=>'服务中心入口'),
				array('url'=>'jy_xiangqin/basic.module_home/cover/ac=worker.index&type=3','title'=>'红娘入口'),
			)),
		)),
		array('title'=>'会员管理','fa'=>'icon-gengduotupian','url'=>'jy_xiangqin/nv/','child'=>array(	
			array('title'=>'会员管理','child'=>array(
				array('url'=>'jy_xiangqin/nv/','title'=>'女士列表'),
				array('url'=>'jy_xiangqin/nan/','title'=>'男士列表'),
				array('url'=>'jy_xiangqin/member/','title'=>'所有会员'),
				array('url'=>'jy_xiangqin/level/','title'=>'会员等级'),
				array('url'=>'jy_xiangqin/viporder/','title'=>'付费开通记录'),
				array('url'=>'core/member.creditlog/','title'=>'金币余额记录'),
			)),
			array('title'=>'动态管理','child'=>array(
				array('url'=>'jy_xiangqin/newslog/','title'=>'动态列表'),
			)),
			array('title'=>'消息管理','child'=>array(
				array('url'=>'jy_xiangqin/msglog/','title'=>'消息记录'),
				array('url'=>'jy_xiangqin/looklog/','title'=>'访问记录'),
			)),
		)),
		array('title'=>'服务中心','fa'=>'icon-paihao0','url'=>'jy_xiangqin/fuwu.index/','child'=>array(	
			array('title'=>'服务中心','child'=>array(
				array('url'=>'jy_xiangqin/basic.module_home/cover/ac=fuwu.index&type=3','title'=>'服务中心入口'),
				array('url'=>'jy_xiangqin/fuwu.index/','title'=>'服务中心'),
				array('url'=>'jy_xiangqin/fuwu.level/','title'=>'服务站等级'),
				
			)),
			array('title'=>'红娘管理','child'=>array(
				array('url'=>'jy_xiangqin/fuwu.worker/','title'=>'红娘列表'),
				array('url'=>'jy_xiangqin/fuwu.redapply_setting/','title'=>'红娘申请页'),
			)),
			array('title'=>'分红管理','child'=>array(
				array('url'=>'jy_xiangqin/fuwu.setting/','title'=>'基本设置'),
				array('url'=>'jy_xiangqin/fuwu.order/','title'=>'分红订单'),
				array('url'=>'jy_xiangqin/fuwu.commission/','title'=>'分红管理'),
				array('url'=>'jy_xiangqin/fuwu.balance/','title'=>'结算管理'),
				array('url'=>'jy_xiangqin/fuwu.page_setting/','title'=>'样式设置'),
				array('url'=>'jy_xiangqin/fuwu.apply_setting/','title'=>'服务中心申请页'),
			)),
			
		)),
		array('title'=>'约会瓶','fa'=>'icon-nv','url'=>'jy_xiangqin/ping.log/','child'=>array(	
			array('title'=>'约会瓶','child'=>array(
				array('url'=>'jy_xiangqin/ping.log/','title'=>'约会瓶记录'),
				array('url'=>'jy_xiangqin/ping.orderlog/','title'=>'购买记录'),
			)),
			array('title'=>'约会瓶答题','child'=>array(
				array('url'=>'jy_xiangqin/ping.timu/','title'=>'约会瓶题目'),
				array('url'=>'jy_xiangqin/ping.datilog/','title'=>'答题记录'),
				array('url'=>'jy_xiangqin/ping.kssetting/','title'=>'考试设置'),
			)),
			array('title'=>'设置','child'=>array(
				array('url'=>'jy_xiangqin/ping.setting/','title'=>'约会瓶设置'),
				array('url'=>'jy_xiangqin/creditlog1/','title'=>'积分记录'),
				array('url'=>'jy_xiangqin/ping.xieyi/','title'=>'约会瓶说明'),
				array('url'=>'jy_xiangqin/ping.xuanchuan/','title'=>'约会瓶宣传'),
			)),
		)),
		array('title'=>'私房照','fa'=>'icon-lunbo','url'=>'jy_xiangqin/siimg.log/','child'=>array(	
			array('title'=>'私房照','child'=>array(
				array('url'=>'jy_xiangqin/siimg.log/','title'=>'浏览记录'),
				array('url'=>'jy_xiangqin/siimg.orderlog/','title'=>'付费记录'),
			)),
			array('title'=>'设置','child'=>array(
				array('url'=>'jy_xiangqin/siimg.setting/','title'=>'私房照设置'),
			)),
		)),
		array('title'=>'私密视频','fa'=>'icon-video','url'=>'jy_xiangqin/sivideo.log/','child'=>array(	
			array('title'=>'私密视频','child'=>array(
				array('url'=>'jy_xiangqin/sivideo.log/','title'=>'浏览记录'),
				array('url'=>'jy_xiangqin/sivideo.orderlog/','title'=>'付费记录'),
			)),
			array('title'=>'设置','child'=>array(
				array('url'=>'jy_xiangqin/sivideo.setting/','title'=>'私密视频设置'),
			)),
		)),
		array('title'=>'聊天管理','fa'=>'icon-pingjia','url'=>'jy_xiangqin/tcp/','child'=>array(	
			array('title'=>'聊天管理','child'=>array(
				array('url'=>'jy_xiangqin/tcp/','title'=>'红娘聊天'),
				array('url'=>'jy_xiangqin/tcp2/','title'=>'客户聊天'),
			)),
			array('title'=>'聊天送礼','child'=>array(
				array('url'=>'jy_xiangqin/lplist/','title'=>'礼品管理'),
				array('url'=>'jy_xiangqin/lporder/','title'=>'送礼记录'),
			)),
		)),
		array('title'=>'应用','isplugin'=>1,'fa'=>'icon-box','url'=>'jy_xiangqin/plugins/','child'=>$plugins),
		array('title'=>'基本设置','fa'=>'icon-shezhi','url'=>'jy_xiangqin/setting/','child'=>array(	
			array('title'=>'基本设置','child'=>array(
				array('url'=>'jy_xiangqin/setting/','title'=>'基本设置'),
				array('url'=>'jy_xiangqin/xieyi/','title'=>'会员协议'),
				array('url'=>'jy_xiangqin/poster/','title'=>'海报设置'),
			)),
		))
);
return $menus;
